package com.xiaolei.libraryktx

import android.widget.RadioButton
import android.widget.RadioGroup

/**
 * 快捷从 RadioGroup 中获取 RadioButton
 */
inline fun <reified T : RadioGroup> T.get(pos: Int): RadioButton
{
    return this.getChildAt(pos) as RadioButton
}